import axios from 'axios'
axios.get('/movie').then((res) => {
    renderMovie(res.data)
})

function renderMovie(data) {
    const movie = document.querySelector('.movie')
    movie.innerHTML = data.map((v) => {
        return `<li>
        <img src='${v.img}' />
        <h2>${v.text}</h2>
        <h2>${v.num}</h2>
        </li>`
    }).join('')
}